package com.site.wisdom_construction.service.statisticsModule;

import com.site.wisdom_construction.dao.statisticsModule.StatisticsPersonDao;
import com.site.wisdom_construction.statisticsResult.ContractWorkersByAgeBracket;
import com.site.wisdom_construction.statisticsResult.ContractWorkersByTypeName;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/24
 * @Description
 */
@Service
public class StatisticsPersonService implements StatisticsPersonDao {
    @Autowired
    private StatisticsPersonDao statisticsPersonDao;

    @Override
    public Integer countWorkerAll(Map map) {
        return statisticsPersonDao.countWorkerAll(map);
    }

    @Override
    public Integer countWorkerBySceneStatus(Map map) {
        return statisticsPersonDao.countWorkerBySceneStatus(map);
    }

    @Override
    public Integer countWorkerByTrainStatus(Map map) {
        return statisticsPersonDao.countWorkerByTrainStatus(map);
    }

    @Override
    public List<ContractWorkersByAgeBracket> countByAgeBracket(Map map) {
        return statisticsPersonDao.countByAgeBracket(map);
    }

    @Override
    public List<ContractWorkersByTypeName> countBySubcontractorsName(Map map) {
        return statisticsPersonDao.countBySubcontractorsName(map);
    }

    @Override
    public List<ContractWorkersByTypeName> countByProfessionName(Map map) {
        return statisticsPersonDao.countByProfessionName(map);
    }

    @Override
    public List<ContractWorkersByTypeName> countByWorkerProvince(Map map) {
        return statisticsPersonDao.countByWorkerProvince(map);
    }

    @Override
    public List<ContractWorkersByTypeName> countByWorkerSex(Map map) {
        return statisticsPersonDao.countByWorkerSex(map);
    }

    @Override
    public List<ContractWorkersByTypeName> countByWorkerNation(Map map) {
        return statisticsPersonDao.countByWorkerNation(map);
    }

    @Override
    public Integer countLabourEnterpriseByStatus(Map map) {
        return statisticsPersonDao.countLabourEnterpriseByStatus(map);
    }
}
